<template>
  <div>
       <h1>我是老二</h1>
  </div>
</template>

<script>
export default {
  name: '',
  mounted(){
    //接受哥哥给的法拉利
    this.$bus.$on('car',(params)=>{
        console.log('感谢哥哥给我的'+params);
    });
  }
}
</script>

<style scoped>
   div{
     width: 400px;
     height: 200px;
     background: yellow;
     margin: 20px auto;
   }
</style>
